package com.lanlian.commonlib.bean;

import java.io.Serializable;

/**
 * <pre>
 *     author : huxiaobo
 *     e-mail : huxiaobo@xlanlian.com
 *     date   : 2018/8/30 12:25
 *     desc   : 持仓对象
 *     version: 1.0
 * </pre>
 */
public class PositionDetailsInfo implements Serializable {

    private String currentPrice;
    private Double profitLoss;
    private Double baseProfitLoss;
    private String averagePrice;//均价

    private Integer lPrebuyAmount;
    private Integer lPresaleAmount;
    private String vcContractCode;
    private String contractName;
    private Long lPositionNo;
    private Long lUtilId;
    private String cPositionFlag;
    private String currency;
    private Integer lCurrentAmount;
    private Integer lFrozenAmount;
    private Integer lTempFrozenAmount;
    private Double price;
    private Double enCurrentCost;
    private Double jj;
    private Double enTodayProfit;//当日实现收益
    private Double enTotalValue;//总市值
    private Double enFuturesDeposit;
    private Double enOvernightDeposit;//隔夜保证金

    public Integer getlPrebuyAmount() {
        return lPrebuyAmount;
    }

    public void setlPrebuyAmount(Integer lPrebuyAmount) {
        this.lPrebuyAmount = lPrebuyAmount;
    }

    public Integer getlPresaleAmount() {
        return lPresaleAmount;
    }

    public void setlPresaleAmount(Integer lPresaleAmount) {
        this.lPresaleAmount = lPresaleAmount;
    }

    public Double getEnOvernightDeposit() {
        return enOvernightDeposit == null ? 0 : enOvernightDeposit;
    }

    public void setEnOvernightDeposit(Double enOvernightDeposit) {
        this.enOvernightDeposit = enOvernightDeposit;
    }

    public Double getEnFuturesDeposit() {
        return enFuturesDeposit == null ? 0 : enFuturesDeposit;
    }

    public void setEnFuturesDeposit(Double enFuturesDeposit) {
        this.enFuturesDeposit = enFuturesDeposit;
    }

    public String getAveragePrice() {
        return averagePrice;
    }

    public void setAveragePrice(String averagePrice) {
        this.averagePrice = averagePrice;
    }

    public Double getEnTotalValue() {
        return enTotalValue == null ? 0 : enTotalValue;
    }

    public void setEnTotalValue(Double enTotalValue) {
        this.enTotalValue = enTotalValue;
    }

    public Double getEnTodayProfit() {
        return enTodayProfit;
    }

    public void setEnTodayProfit(Double enTodayProfit) {
        this.enTodayProfit = enTodayProfit;
    }

    public Double getBaseProfitLoss() {
        return baseProfitLoss == null ? 0 : baseProfitLoss;
    }

    public void setBaseProfitLoss(Double baseProfitLoss) {
        this.baseProfitLoss = baseProfitLoss;
    }

    public Double getJj() {
        return jj;
    }

    public void setJj(Double jj) {
        this.jj = jj;
    }

    public String getContractName() {
        return contractName;
    }

    public void setContractName(String contractName) {
        this.contractName = contractName;
    }

    public String getcPositionFlag() {
        return cPositionFlag;
    }

    public void setcPositionFlag(String cPositionFlag) {
        this.cPositionFlag = cPositionFlag;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Integer getlCurrentAmount() {
        return lCurrentAmount;
    }

    public void setlCurrentAmount(Integer lCurrentAmount) {
        this.lCurrentAmount = lCurrentAmount;
    }

    public Integer getlFrozenAmount() {
        return lFrozenAmount;
    }

    public void setlFrozenAmount(Integer lFrozenAmount) {
        this.lFrozenAmount = lFrozenAmount;
    }

    public Integer getlTempFrozenAmount() {
        return lTempFrozenAmount;
    }

    public void setlTempFrozenAmount(Integer lTempFrozenAmount) {
        this.lTempFrozenAmount = lTempFrozenAmount;
    }

    public Double getPrice() {
        return price == null ? 0 : price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getEnCurrentCost() {
        return enCurrentCost;
    }

    public void setEnCurrentCost(Double enCurrentCost) {
        this.enCurrentCost = enCurrentCost;
    }

    public String getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(String currentPrice) {
        this.currentPrice = currentPrice;
    }

    public Double getProfitLoss() {
        return profitLoss == null ? 0 : profitLoss;
    }

    public void setProfitLoss(Double profitLoss) {
        this.profitLoss = profitLoss;
    }

    public String getVcContractCode() {
        return vcContractCode;
    }

    public void setVcContractCode(String vcContractCode) {
        this.vcContractCode = vcContractCode;
    }

    public Long getlPositionNo() {
        return lPositionNo;
    }

    public void setlPositionNo(Long lPositionNo) {
        this.lPositionNo = lPositionNo;
    }

    public Long getlUtilId() {
        return lUtilId;
    }

    public void setlUtilId(Long lUtilId) {
        this.lUtilId = lUtilId;
    }
}
